package pattern.factory.abstractfactory;

/**
 * @author: jxj
 * @create: 2019-04-19
 **/
public class AbstractFactoryTest {
    public static void main(String[] args) {
        CourseFactory javaCourseFactory=new JavaCourseFactory();
        INote javaNote=javaCourseFactory.createNote();
        IVideo javaVideo=javaCourseFactory.createVideo();
        javaNote.edit();
        javaVideo.record();

        CourseFactory pythonCourseFactory=new PythonCourseFactory();
        INote pythonNote=pythonCourseFactory.createNote();
        IVideo pythonVideo=pythonCourseFactory.createVideo();
        pythonNote.edit();
        pythonVideo.record();
    }
}
